package cn.yangliu.nacos.comm.oauth;

import cn.yangliu.nacos.comm.model.Oauth2Token;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
public interface TokenHandler {

    /**
     * Load oauth 2 token.
     *
     * @param username the username
     * @return the oauth 2 token
     */
    Oauth2Token load(String username);

    /**
     * Store.
     *
     * @param username the username
     * @param token    the token
     */
    void store(String username, Oauth2Token token);

}
